package OOday02;

public class Teacher extends Person{
    double salary;

    public Teacher(String name, int age, String address, double salary) {
        super(name, age, address);
        this.salary = salary;
    }

    public void sayHi(){
        System.out.println("我叫"+name);
    }

    void teach(){
        System.out.println(name+"正在讲课————————");
    }
}
